package com.dailyblue.java.project.smbms.address.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dailyblue.java.project.smbms.address.bean.Address;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface AddressMapper extends BaseMapper<Address> {
    @Update("update smbms_address set defaultAddress=0 where userId=#{userId}")
    void updateAddress(int userId);
}
